<?php

declare(strict_types=1);

namespace Plugin\Attractions\AttractionManagement\Model\Attraction_spot_position;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id 
 * @property string $name 位置名称
 * @property string $longitude 中心经度
 * @property string $latitude 中心纬度
 * @property string $altitude 中心海拔
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class AttractionSpotPosition extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'attraction_spot_position';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'longitude', 'latitude', 'altitude', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'longitude' => 'decimal:6', 'latitude' => 'decimal:6', 'altitude' => 'decimal:2', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
